<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 收集select单选，把v-model写在select上，使用字符串接收 -->
        <h1>你的答案</h1>
        <select v-model="ans">
            <option value="A">A</option>
            <option value="B">B</option>
            <option value="C">C</option>
            <option value="D">D</option>

        </select>
        <br>
        <h1>选择你喜欢的水果</h1>
        <select v-model="project" multiple>
            <option value="A">橙子</option>
            <option value="B">榴莲</option>
            <option value="C">西瓜</option>
            <option value="D">苹果</option>
            <option value="D">哈密瓜</option>
            <option value="D">猕猴桃</option>



        </select>
    </div>
    <script>
        Vue.config.productionTip = false;

        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    ans: "A",
                    project: [],
                }
            }
        })
    </script>
</body>

</html>